QADrawContextNew
You can use theQADrawContextNew
function to create a new draw context.
TQAError QADrawContextNew ( const TQADevice *device, const TQARect *rect, const TQAClip *clip, const TQAEngine *engine, unsigned long flags, TQADrawContext **newDrawContext);
device
- A device.
rect
- The rectangular region (specified in device coordinates) of the specified device that can be drawn into by the drawing engine associated with the new draw context.
clip
- The two-dimensional clipping region for the new draw context, or
NULL
if no clipping is desired. This parameter must be set toNULL
for devices of typekQADeviceMemory
.engine
- A drawing engine.
flags
- A set of bit flags specifying features of the new draw context. See "Draw Context Flags Masks" (page 1-65) for complete information.
newDrawContext
- On entry, the address of a pointer variable. On exit, that variable points to a new draw context. If a new draw context cannot be created,
*newDrawContext
is set to the valueNULL
.DESCRIPTION
TheQADrawContextNew
function returns, through thenewDrawContext
parameter, a new draw context associated with the device specified by thedevice
parameter and the drawing engine specified by theengine
parameter.